package com.young.springdemo.service.statePattern;

//抽象状态类
public abstract class AccountState {
    protected Account account;//维持对环境类的引用
    public abstract  void deposit(double amount);//存款
    public abstract void withdraw(double amount);//取款
    public abstract void computerInterest();//计算利息
    public abstract void stateCheck();//状态切换

}
